package com.jdbc.text5;

import java.sql.SQLException;

public class Fun1 {
    public static void main(String[] args) throws SQLException {
        NewsDaoImp1 newsDaoImp1 = new NewsDaoImp1();
        //newsDaoImp1.getNewsByTitle();
        //newsDaoImp1.addNews(4,2,"null","null","null","null",new Date());
        //newsDaoImp1.addNews(3,2,"null","null","null","null",new Date());
        //newsDaoImp1.deleteNews(3);
       newsDaoImp1.updateNews(4,"java1");
    }


}
